if(!Vue){
    var Vue = require('Vue')
}

var vm = new Vue({
    el:'body',
    data:{
        g: g,
        asso:asso,
        x:100,
        y:100,
        asso

    },
    computed: {
        gNum: function(){
            return this.objectNum(this.g)
        },
        assoNum: function(){
            return this.objectNum(this.asso)
        }
    },
    methods:{
        newAsso: function(zhu,wei,bin){
            newAsso(this.zhu, this.wei, this.bin)
        },
        show: function(){
            console.log(g,asso)
        },
        assoX: function(index,total){
            var arc = (index + 1)/total * Math.PI*2
            return Math.cos(arc)
        },
        assoY: function(index, total){

        }
        objectNum: function(o){
            var n = 0
            for(var k in o){
                n++
            }
            return n
        }

    }
})
